Contains the status of the device models running on the domain.
+#### ~/device-model/$DOMID/backends/* [w]
+
+Backend types the device model is supporting. Each entry below backends
+is a directory which may contain further nodes specific to the backend
+type. The name of each backend directory is the same as the backend type
+(e.g. "qdisk").
+
#### ~/libxl/$DOMID/qdisk-backend-pid [w]
Contains the PIDs of the device models running on the domain.
device_model_spawn_outcome(egc, dmss, rc);
}
+bool libxl__query_qemu_backend(libxl__gc *gc, uint32_t domid,
+ uint32_t backend_id, const char *type, bool def)
+{
+ char *path;
+ char **dir;
+ unsigned int n;
+
+ path = GCSPRINTF("%s/device-model/%u/backends",
+ libxl__xs_get_dompath(gc, backend_id), domid);
+ dir = libxl__xs_directory(gc, XBT_NULL, path, &n);
+ if (!dir)
+ return def;
+
+ path = GCSPRINTF("%s/device-model/%u/backends/%s",
+ libxl__xs_get_dompath(gc, backend_id), domid, type);
+ dir = libxl__xs_directory(gc, XBT_NULL, path, &n);
+
+ return !!dir;
+}
static void device_model_confirm(libxl__egc *egc, libxl__spawn_state *spawn,
const char *xsdata)
const libxl_domain_build_info *info);
_hidden int libxl__need_xenpv_qemu(libxl__gc *gc,
libxl_domain_config *d_config);
+_hidden bool libxl__query_qemu_backend(libxl__gc *gc,
+ uint32_t domid,
+ uint32_t backend_id,
+ const char *type,
+ bool def);
/*
* This function will fix reserved device memory conflict